<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title></title>
</head>
<body>
<div class="contant">
<div class="row"> <h3 class="page-header">保险管理</h3></div>
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-body">
            	<label><a class="btn btn-primary" href="{:U('Insurance/company_add')}">添加保险公司</a></label>
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th width="60">序号</th>
                                <th>公司名称</th>
                                <th>添加时间</th>
                                <th width="75">状态</th>
                                <th width="120">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="i_c">
                                <tr>
                                    <td>{$i_c.id}</td>
                                    <td>{$i_c.company_name}</td>
                                    <td>{$i_c.add_time|date='Y-m-d H:i',###}</td>
                                    <td class="center">
                                     	<button class='btn <eq name="i_c.status" value="1">btn-primary<else />btn-default</eq> btn-sm setStatus' type="button" data-url='{:U("Insurance/setStatus?id=".$i_c["id"])}' data-status="{$i_c.status}"><eq name="i_c.status" value='1'>启用<else />禁用</eq></button>
                                    </td>
                                    <td>
                                        <a class=" btn-sm btn btn-default" href='{:U("Insurance/company_edit?id=".$i_c["id"])}'>修改</a>
                                       <button data-url='{:U("Insurance/company_del?id=".$i_c["id"])}' class=" btn-sm btn btn-default delBtn" type="button">删除</button>
                                    </td>
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                </div>
                {$page}
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>